The current situation is that the back-end uses the php yii framework to return data to the front-end in view mode. There is a form that binds the onclick event and sends the data requests obtained by php to another backend, that is, the following
The current situation is that the backend uses the PHP Yii framework to return the data to the front end in view mode.
There is a form form that, by binding the OnClick event, requests the data fetched by PHP to another backend, the following
Cisa a method to submit to the official PHP BUG page
Copy the Code code as follows:
/*** Fix PHP 5.2.6 or later Array_diff () function in processing* Large array of problems that take an extra long time** Finishing: http://www.CodeBit.cn*
Original form value acquisition method (manual ):
$. Ajax ({type: "POST", url: "ajax. php ", data:" Name = extract star & position = IT technology ", success: function (msg) {alert (msg) ;}, error: function (error) {alert (error );}});
JQ serialize
The ajaxPOSTjson object is sent to PHP. how does PHP receive the value? this post is Last edited by KtosMayCry from 2014-07-0420: 30: 03 front end: & nbsp; $ (# save_config_btn ). click (function () {& nbsp; & nbs ajax POST json object to PHP. how
The ajaxPOSTjson object is sent to PHP. how does PHP receive the value on the frontend:
$ ("# Save_config_btn "). click (function () {$. ajaxSetup ({cache: false, contentType: "application/x-www-form-urlencoded; charset = utf-8"}); var fields = $ (
Ajax POST JSON object gives php,php how to receive values
This post was last edited by ktosmaycry on 2014-07-04 20:30:03
Front:
$ ("#save_config_btn"). Click (function () { $.ajaxsetup ({ Cache:false, ContentType:
Describes several common forms processing functions of jquery: 1. serialize the Form Content element as a string, which is often used for ajax submission. $ (& Quot; form & quot;). serialize () & amp; nbsp; 2. & amp; nbsp; serializeArray () sequence
Today in the process of interacting with the background, found that PHP for the received post has a limit, beyond 1000 fields will not be able to receive, project requirements in the case without changing the PHP configuration through the front-end
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.